<template>
  <div class="layui-layout layui-layout-admin">
    <div class="adminnav1">
      <Pagetop></Pagetop>
    </div>
    <div class="adminnav2">
      <Secondnav urlname="market"></Secondnav>
    </div>

    <!-- 主体内容 -->
    <div class="layui-body kedou-admin" id="LAY_app_body">
      <div class="layui-fluid">
        <div class="layui-card">
          <div class="layui-card-body layui-row">
            <div class="layui-col-xs6" v-show="isshow == 1" style="display:none">
              <div class="grid-demo">
                <router-link to="/yhj">
                  <dl>
                    <dt><img src="./../assets/img29.png" /></dt>
                    <dd>优惠券模版</dd>
                  </dl>
                </router-link>
              </div>
            </div>
            <div class="layui-col-xs6" v-show="isshow == 2" style="display:none">
              <div class="grid-demo">
                <router-link to="/yhj">
                  <dl>
                    <dt><img src="./../assets/img29.png" /></dt>
                    <dd>优惠券</dd>
                  </dl>
                </router-link>
              </div>
            </div>

            <div class="layui-col-xs6" v-show="isshow == 1" style="display:none">
              <div class="grid-demo">
                <router-link to="/member">
                  <dl>
                    <dt><img src="./../assets/img30.png" /></dt>
                    <dd>会员模板</dd>
                  </dl>
                </router-link>
              </div>
            </div>

            <div class="layui-col-xs6" v-show="isshow ==2" style="display:none">
              <div class="grid-demo">
                <router-link to="/member1">
                  <dl>
                    <dt><img src="./../assets/img30.png" /></dt>
                    <dd>会员营销</dd>
                  </dl>
                </router-link>
              </div>
            </div>

          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
//	import echarts from 'echarts'
import Pagetop from "./common/pagetop.vue";
import Secondnav from "./common/secondnav.vue";
export default {
  name: "market",
  components: { Pagetop, Secondnav },
  data () {
    return {
      type: localStorage.getItem("type"),
      isshow: ""
    };
  },
  mounted () {
    this.getdate();
  },
  methods: {
    getdate: function () {
      var _this = this;
      if (_this.type == 1) {
        _this.isshow = 1;
      } else {
        _this.isshow = 2;
      }
    }
  },
  updated: function () {
    this.isShow = true;
    layui.use("form", function () {
      var form = layui.form;
      form.render();
    });
  }
};
</script>
<style scoped>
/*二级导航*/
</style>